//
//  ViewController.swift
//  MBHUDHelperDemo
//
//  Created by ysk on 2017/5/4.
//  Copyright © 2017年 ysk. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        let button = UIButton(type: UIButtonType.contactAdd)
        button.frame = CGRect(x: 100, y: 100, width: 40, height: 40)
        button.addTarget(self, action: #selector(self.buttonTapped(_:)), for: .touchUpInside)
        self.view.addSubview(button)
    }
    
    func buttonTapped(_ sender: Any) -> Void {
//        MBHUDHelper.showToast("哈哈😄哈哈")
//        MBHUDHelper.showLoadingInView(self.view)
//        MBHUDHelper.showLoadingInView(self.view, message: "abc")
//        MBHUDHelper.showLoadingInWindow()
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

